Skip to content

devcontainer: fix Authorization header not passed to PHP via Apache#60737

Closed
Jay-1409 wants to merge 16 commits into
nextcloud:masterfrom
Jay-1409:master
Closed

devcontainer: fix Authorization header not passed to PHP via Apache#60737
Jay-1409 wants to merge 16 commits into
nextcloud:masterfrom
Jay-1409:master

Conversation

@Jay-1409

Copy link
Copy Markdown

Summary

This PR improves the devcontainer setup by fixing an issue where Apache was not forwarding the Authorization header to PHP, which could break authentication flows inside the container.

It adds an Apache configuration during devcontainer setup that ensures the Authorization header is correctly passed through to PHP using SetEnvIfNoCase. The config is automatically enabled via a2enconf.

This resolves authentication issues in the Docker/devcontainer environment where tokens or auth headers were previously being stripped, ensuring consistent login and API behavior during local development.

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@Jay-1409 Jay-1409 requested a review from a team as a code owner May 26, 2026 15:00
@Jay-1409 Jay-1409 requested review from artonge, leftybournes, provokateurin and salmart-dev and removed request for a team May 26, 2026 15:00
ChristophWurst and others added 15 commits May 27, 2026 08:53
iconv transliteration is locale- and config-dependent and fails silently
on some setups. UnicodeString::ascii() from symfony/string uses a built-in
transliteration table backed by symfony/polyfill-intl-normalizer, so it
works on all setups without requiring optional PHP extensions.

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
…olower

Followup to nextcloud#59646: guard against null reaching strtolower() in both
AppConfig and UserConfig getValueBool(). Also aligns AppConfig with the
(string) cast added in UserConfig by the original PR.

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Bumps the eslint group with 1 update in the / directory: [eslint](https://github.com/eslint/eslint).

Updates `eslint` from 10.3.0 to 10.4.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v10.3.0...v10.4.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 10.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: eslint
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `qs` from 6.14.2 to 6.15.2
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.14.2...v6.15.2)

Updates `express` from 4.22.1 to 4.22.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/v4.22.2/History.md)
- [Commits](expressjs/express@v4.22.1...v4.22.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.15.2
  dependency-type: indirect
- dependency-name: express
  dependency-version: 4.22.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Jay shah <166749819+Jay-1409@users.noreply.github.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Bumps [webdav](https://github.com/perry-mitchell/webdav-client) from 5.9.0 to 5.10.0.
- [Changelog](https://github.com/perry-mitchell/webdav-client/blob/master/CHANGELOG.md)
- [Commits](perry-mitchell/webdav-client@v5.9.0...v5.10.0)

---
updated-dependencies:
- dependency-name: webdav
  dependency-version: 5.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Adds an NcDialog confirmation to the Revoke action; deletion was
previously instant on click. When the token is marked for remote
wipe, the dialog surfaces a warning and the destructive button
switches to "Cancel wipe and revoke" so cancelling an in-flight
wipe is an explicit opt-in.

Also migrates the existing Wipe confirm from the legacy
window.OC.dialogs.confirm helper to NcDialog, matching the new
delete dialog. The auth token store actions are now pure API
callers; the UI does the gating.

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Signed-off-by: Jay Shah <jay_shah@outlook.in>
@Jay-1409 Jay-1409 requested review from a team, SebastianKrupinski and hamza221 as code owners May 27, 2026 03:30
@Jay-1409 Jay-1409 requested review from nfebe and susnux and removed request for a team May 27, 2026 03:31
@Jay-1409 Jay-1409 requested a review from sorbaugh May 27, 2026 03:31
@Jay-1409 Jay-1409 closed this May 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Can not create or delete App password due to NotConfirmedException

6 participants